import { SessionStorage } from "./sessionStorage";
import { LocalStorage } from "./localStorage";

export type StorageType = "sessionStorage" | "localStorage";

export const creatStorage = (type: StorageType) => {
  if (type === "sessionStorage") {
    return new SessionStorage();
  }

  if (type === "localStorage") {
    return new LocalStorage();
  }
};
